﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link href="/Content/dist/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="/Content/grid.css" rel="stylesheet"> 
    <title>@ViewBag.Title </title>


    <script src="http://code.jquery.com/jquery-2.1.1.js" type="text/javascript"></script>
    <link href="/Content/Css/PagedList.css" rel="stylesheet" />
    @*<link rel="stylesheet" type="text/css" media="screen" href="/Content/Css/css-table.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="/Content/site.css" />*@

    <script type="text/javascript" src="/Content/js/style-table.js"></script>
    <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>

    @RenderSection("head", required: false)
</head>
<body>
    @if (Request.IsAuthenticated)
    {
        
        <header>
            <div class="container">

                <div class="navbar navbar-default" role="navigation">
                    <div class="container-fluid">
                        <div class="navbar-header">
                            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
                                <span class="sr-only">Trang chủ</span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                            </button>
                            <a class="navbar-brand" href="/">Trang chủ</a>
                        </div>
                        <div class="navbar-collapse collapse">
                            <ul class="nav navbar-nav">
                               
                            <li>
                                  <a href="/News/Index" class="dropdown-toggle" data-toggle="dropdown">bài viết<span class="caret"></span></a>  
                                  <ul class="dropdown-menu" role="menu">
                                        <li> <a href="/News/Index" >bài viết</a>  </li>
                                      <li class="divider"></li>
                                      <li> <a href="/News/Create" >Bài viết mới</a>  </li>
                                      <li class="divider"></li>
                                        <li>@Html.ActionLink("Danh mục", "Index", "Cate")</li>
                                      <li class="divider"></li>
                                        <li>@Html.ActionLink("Hình ảnh", "Index", "Media")</li>       
                                    </ul>

                            </li> 
                            <ul class="nav navbar-nav navbar-right">
                                <li class="active">   
                                    @using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" }))
                                {
                                    @Html.AntiForgeryToken()
                                    <a href="javascript:document.getElementById('logoutForm').submit()">Thoát</a>
                                } 

                                </li>
                                 
                            </ul>
                        </div>
                        <!--/.nav-collapse -->
                    </div>
                    <!--/.container-fluid -->
                </div>

                <div class="float-left">
                    <nav>
                        <ul id="menu">

                            
                        </ul>
                    </nav>
                </div>
            </div>
        </header>
    }
    else
    {
    }

    <div class="container">
        @RenderSection("featured", required: false)
        <section class="content-wrapper main-content clear-fix">
            @RenderBody()
        </section>
    </div>
    @RenderSection("scripts", required: false)
</body>
</html>
